﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using Einstein.Utility;

namespace Einstein.Platform.Window.Report
{
    public partial class Report_InOut : Office2007Form
    {
        public Report_InOut()
        {
            InitializeComponent();
        }

        private void ButtonItem_Click(object sender, EventArgs e)
        {
             ButtonItem btn = sender as ButtonItem;
             if (btn != null)
             {
                 if (btn.Name == "Report_InOut_Search")
                 {
 
                 }
                 if (btn.Name == "Report_InOut_Export")
                 {
                     SaveFileDialog save = ExcelHelper.GetSaveFileDialog();
                     if (save.ShowDialog() == DialogResult.OK)
                     {
                         string path = save.FileName;
                         ExcelHelper.ExportExcel(path, "进出记录查询", new DataTable(), new string[] {"人员卡号","人员编号","人员姓名","组织架构名称","性别","进出时间","进出位置","进出标志","记录描述" });
                     } 
                 }
                 if (btn.Name == "Report_InOut_Print")
                 {

                 }
             }

        }
    }
}
